package entity;

import com.oracle.webservices.internal.api.databinding.DatabindingMode;
import lombok.Data;

import java.io.Serializable;

/**
 * @Version :1.0
 * @PROJECT_NAME: java-basics
 * @PACKAGE_NAME:entity
 * @NAME: User
 * @author:xuandian
 * @DATE: 2022/6/25 10:28
 * @description: 用户信息
 */


public class User implements Serializable {
    private static final long serialVersionUID = 190512204190251207L;
    /**
     * Id
     */
    private Integer userId;
    /**
     * 用户名
     */
    private String userName;

    public User() {

    }

    public User(Integer userId, String userName) {
        this.userId = userId;
        this.userName = userName;
    }

    public Integer getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                '}';
    }
}
